package com.example.entity;

public class Course {
    private Integer courseid;  // 主键ID
    private String course;     // 课程代码
    private String name;       // 课程名称
    private Integer teacher_id;// 教师ID
    private Integer credit;    // 学分

    // getters and setters
    public Integer getCourseid() { return courseid; }
    public void setCourseid(Integer courseid) { this.courseid = courseid; }

    public String getCourse() { return course; }
    public void setCourse(String course) { this.course = course; }

    public String getName() { return name; }
    public void setName(String name) { this.name = name; }

    public Integer getTeacher_id() { return teacher_id; }
    public void setTeacher_id(Integer teacher_id) { this.teacher_id = teacher_id; }

    public Integer getCredit() { return credit; }
    public void setCredit(Integer credit) { this.credit = credit; }

    @Override
    public String toString() {
        return "Course{" +
                "courseid=" + courseid +
                ", course='" + course + '\'' +
                ", name='" + name + '\'' +
                ", teacher_id=" + teacher_id +
                ", credit=" + credit +
                '}';
    }
}